package com.jinbo.sxzq;

import android.util.Log;

/***********棋子猪********************/
public class Chess_Zhu extends Chess{
    Chess_Zhu(int type, int index, int[] location, int owner, GameControl gameControl) {
        /********初始化信息****************/
        super(index, location, owner, gameControl);
        this.type = type;
        this.name = ProjectConstants.ChessName.ZHU;
        this.message = ProjectConstants.ChessMasage.ZHU;
        this.type = ProjectConstants.ChessType.ZHU;
        this.hp = 6;
        this.maxHp = 6;
        this.mp = 0;
        this.maxMp = 0;
        this.mobility = 1;
        this.maxmobility = 1;
        this.atk = 1;
    }

    public void Action(){
        super.Action();
    }

    public void Move(Chess chess){
        super.Move(chess);
    }

    public void Attack(Chess chess){
        super.Attack(chess);
    }

    //重写技能猪：【肉山】每回合获得生命+1。
    public void RoundNext(){
        super.RoundNext();
        Log.e("Skill——猪" , "触发技能");
        hp++;
    }

    public void Skill(){
        super.Skill();
    }

    public void Kill(Chess chess){
        super.Kill(chess);
    }
}
